package com.zhuozhou.jdyc.main.meinfo.bean;

import androidx.databinding.BaseObservable;

import com.zhuozhou.jdyc.util.apiUtil.DateUtil;

import java.util.List;

/**
 * Create by Once_ChuXy on 2021/9/18
 * Describe:我的订单
 */
public class BasicsMyPayBean {

    /**
     * code : 200
     * msg : 我的订单
     * list : [{"qr":"","order_id":"937","my_out_trade_no":"1627353844536","price":"0.00","date":"2021-07-27 10:44:04","payid":510,"integral":"10","distribution":"4","hexiao_status":"0","status":"1","shoppingtype":"0","usertype":"0","tihuo_id":0,"kuaidiname":null,"kuaidivalue":null,"x":"","y":"","shansongdingdan":"","status_type":"货运物流","status_type_id":4,"list":[{"fund":"0","admin_id":65,"out_trade_no":"202101291627353844","order_id":937,"name":"刘明鑫","price":null,"date":"2021-07-27 10:44:04","commodityname":"鱼皮","number":1,"sku":[{"spec_value":"1袋"}],"type":3,"phone":"15610827769","commodity_id":361,"site":"河北省衡水市故城县西半屯镇万庄村","property":{"spec_image":"https://yuncang.dzsmxx.com/uploads/20210529/4ef9dc7f83b0a60ea50996daea6cff5e.jpg","goods_price":"10.00"}}],"msg":"待发货"},{"qr":"","order_id":"536","my_out_trade_no":"1624867162123","price":"181.50","date":"2021-07-19 10:06:37","payid":283,"integral":"358","distribution":"3","hexiao_status":"0","status":"1","shoppingtype":"1","usertype":"1","tihuo_id":0,"kuaidiname":null,"kuaidivalue":null,"x":"115.872139","y":"37.18795","shansongdingdan":"TDH2021062816676248","status_type":"骑手配送","status_type_id":3,"list":[{"fund":"0","admin_id":65,"out_trade_no":"202101291624867162","order_id":536,"name":"刘明鑫","price":null,"date":"2021-06-28 15:59:22","commodityname":"美岸干红","number":1,"sku":[{"spec_value":"1瓶"}],"type":3,"phone":"15610827769","commodity_id":47,"site":"河北省衡水市故城县西半屯镇万庄村","property":{"spec_image":"https://yuncang.dzsmxx.com/uploads/20210526/69ef41abc21103efd962f796323801a7.jpg","goods_price":"358.00"}}],"msg":"待评价"},{"qr":"","order_id":"761","my_out_trade_no":"1626337355609","price":"180.50","date":"2021-07-15 16:22:35","payid":402,"integral":"358","distribution":"3","hexiao_status":"0","status":"0","shoppingtype":"0","usertype":"0","tihuo_id":0,"kuaidiname":null,"kuaidivalue":null,"x":"115.872139","y":"37.18795","shansongdingdan":"DH2021071521490219","status_type":"骑手配送","status_type_id":3,"list":[{"fund":"0","admin_id":65,"out_trade_no":"202101291626337355","order_id":761,"name":"刘明鑫","price":null,"date":"2021-07-15 16:22:35","commodityname":"美岸干红","number":1,"sku":[{"spec_value":"1瓶"}],"type":3,"phone":"15610827769","commodity_id":47,"site":"河北省衡水市故城县西半屯镇万庄村","property":{"spec_image":"https://yuncang.dzsmxx.com/uploads/20210526/69ef41abc21103efd962f796323801a7.jpg","goods_price":"358.00"}}],"msg":"待付款","awaitPayment":{"my_out_trade_no":"1626337355609","price":"180.50","user_id":91,"admin_id":"65"}},{"qr":"","order_id":"705","my_out_trade_no":"1625908259897","price":"10177.50","date":"2021-07-10 17:10:59","payid":372,"integral":"10000","distribution":"3","hexiao_status":"0","status":"0","shoppingtype":"0","usertype":"0","tihuo_id":129,"kuaidiname":null,"kuaidivalue":null,"x":"115.872139","y":"37.18795","shansongdingdan":"DH2021071024815480","status_type":"骑手配送","status_type_id":3,"list":[{"fund":"0","admin_id":129,"out_trade_no":"202101291625908259","order_id":705,"name":"刘明鑫","price":"10000.00","date":"2021-07-10 17:10:59","commodityname":"力量万象城房源多套","number":1,"sku":[{"spec_value":"10000"}],"type":1,"phone":"15610827769","commodity_id":47,"site":"河北省衡水市故城县西半屯镇万庄村","property":{"spec_image":"https://yuncang.dzsmxx.com/uploads/20210706/47f979413d8cbc9627f39e1445263d72.jpg","goods_price":"10000.00"}}],"tihuodian":{"nickname":"万象城精品房源","site":"山东省德州市德城区乐普大道","x":"37.46903","y":"116.38810"},"msg":"待付款","awaitPayment":{"my_out_trade_no":"1625908259897","price":"10177.50","user_id":91,"admin_id":"129"}},{"qr":"","order_id":"704","my_out_trade_no":"1625903144706","price":"10177.50","date":"2021-07-10 15:45:44","payid":371,"integral":"10000","distribution":"3","hexiao_status":"0","status":"0","shoppingtype":"0","usertype":"0","tihuo_id":129,"kuaidiname":null,"kuaidivalue":null,"x":"115.872139","y":"37.18795","shansongdingdan":"DH2021071021473840","status_type":"骑手配送","status_type_id":3,"list":[{"fund":"0","admin_id":129,"out_trade_no":"202101291625903144","order_id":704,"name":"刘明鑫","price":"10000.00","date":"2021-07-10 15:45:44","commodityname":"力量万象城房源多套","number":1,"sku":[{"spec_value":"10000"}],"type":1,"phone":"15610827769","commodity_id":47,"site":"河北省衡水市故城县西半屯镇万庄村","property":{"spec_image":"https://yuncang.dzsmxx.com/uploads/20210706/47f979413d8cbc9627f39e1445263d72.jpg","goods_price":"10000.00"}}],"tihuodian":{"nickname":"万象城精品房源","site":"山东省德州市德城区乐普大道","x":"37.46903","y":"116.38810"},"msg":"待付款","awaitPayment":{"my_out_trade_no":"1625903144706","price":"10177.50","user_id":91,"admin_id":"129"}},{"qr":"https://yuncang.dzsmxx.com/qrcode/build?text=https://yuncang.dzsmxx.com/qrcode/build?text=1/my_out_trade_no=1625901637258/type=1/user_id=91","order_id":"703","my_out_trade_no":"1625901637258","price":"10000.00","date":"2021-07-10 15:20:37","payid":370,"integral":"10000","distribution":"2","hexiao_status":"0","status":"0","shoppingtype":"0","usertype":"0","tihuo_id":129,"kuaidiname":null,"kuaidivalue":null,"x":"","y":"","shansongdingdan":"","status_type":"自提","status_type_id":2,"list":[{"fund":"0","admin_id":129,"out_trade_no":"202101291625901637","order_id":703,"name":"刘明鑫","price":"10000.00","date":"2021-07-10 15:20:37","commodityname":"力量万象城房源多套","number":1,"sku":[{"spec_value":"10000"}],"type":1,"phone":"15610827769","commodity_id":47,"site":"河北省衡水市故城县西半屯镇万庄村","property":{"spec_image":"https://yuncang.dzsmxx.com/uploads/20210706/47f979413d8cbc9627f39e1445263d72.jpg","goods_price":"10000.00"}}],"tihuodian":{"nickname":"万象城精品房源","site":"山东省德州市德城区乐普大道","x":"37.46903","y":"116.38810"},"msg":"待付款","awaitPayment":{"my_out_trade_no":"1625901637258","price":"10000.00","user_id":91,"admin_id":"129"}},{"qr":"","order_id":"514","my_out_trade_no":"1624697477230","price":"181.50","date":"2021-06-26 16:51:17","payid":269,"integral":"20","distribution":"3","hexiao_status":"0","status":"0","shoppingtype":"0","usertype":"0","tihuo_id":0,"kuaidiname":null,"kuaidivalue":null,"x":"115.872139","y":"37.18795","shansongdingdan":"TDH2021062615239951","status_type":"骑手配送","status_type_id":3,"list":[{"fund":"0","admin_id":65,"out_trade_no":"202101291624697477","order_id":514,"name":"刘明鑫","price":null,"date":"2021-06-26 16:51:17","commodityname":"千草素.酵素","number":1,"sku":[{"spec_value":"1瓶"}],"type":3,"phone":"15610827769","commodity_id":1022,"site":"河北省衡水市故城县西半屯镇万庄村","property":{"spec_image":"https://yuncang.dzsmxx.com/uploads/20210526/69ef41abc21103efd962f796323801a7.jpg","goods_price":"358.00"}}],"msg":"待付款","awaitPayment":{"my_out_trade_no":"1624697477230","price":"181.50","user_id":91,"admin_id":"65"}}]
     */

    private int code;
    private String msg;
    private List<ListBeanX> list;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<ListBeanX> getList() {
        return list;
    }

    public void setList(List<ListBeanX> list) {
        this.list = list;
    }

    public static class ListBeanX extends BaseObservable implements Comparable<ListBeanX> {
        /**
         * qr :
         * order_id : 937
         * my_out_trade_no : 1627353844536
         * price : 0.00
         * date : 2021-07-27 10:44:04
         * payid : 510
         * integral : 10
         * distribution : 4
         * hexiao_status : 0
         * status : 1
         * shoppingtype : 0
         * usertype : 0
         * tihuo_id : 0
         * kuaidiname : null
         * kuaidivalue : null
         * x :
         * y :
         * shansongdingdan :
         * status_type : 货运物流
         * status_type_id : 4
         * list : [{"fund":"0","admin_id":65,"out_trade_no":"202101291627353844","order_id":937,"name":"刘明鑫","price":null,"date":"2021-07-27 10:44:04","commodityname":"鱼皮","number":1,"sku":[{"spec_value":"1袋"}],"type":3,"phone":"15610827769","commodity_id":361,"site":"河北省衡水市故城县西半屯镇万庄村","property":{"spec_image":"https://yuncang.dzsmxx.com/uploads/20210529/4ef9dc7f83b0a60ea50996daea6cff5e.jpg","goods_price":"10.00"}}]
         * msg : 待发货
         * awaitPayment : {"my_out_trade_no":"1626337355609","price":"180.50","user_id":91,"admin_id":"65"}
         * tihuodian : {"nickname":"万象城精品房源","site":"山东省德州市德城区乐普大道","x":"37.46903","y":"116.38810"}
         */

        private String qr;
        private String order_id;
        private String my_out_trade_no;
        private String price;
        private String date;
        private int payid;
        private String integral;
        private String distribution;
        private String hexiao_status;
        private String status;
        private String shoppingtype;
        private String usertype;
        private int tihuo_id;
        private String kuaidiname;
        private String kuaidivalue;
        private String x;
        private String y;
        private String shansongdingdan;
        private String status_type;
        private int status_type_id;
        private String msg;
        private AwaitPaymentBean awaitPayment;
        private TihuodianBean tihuodian;
        private List<ListBean> list;

        public String getQr() {
            return qr;
        }

        public void setQr(String qr) {
            this.qr = qr;
        }

        public String getOrder_id() {
            return order_id;
        }

        public void setOrder_id(String order_id) {
            this.order_id = order_id;
        }

        public String getMy_out_trade_no() {
            return my_out_trade_no;
        }

        public void setMy_out_trade_no(String my_out_trade_no) {
            this.my_out_trade_no = my_out_trade_no;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getDate() {
            return date;
        }

        public void setDate(String date) {
            this.date = date;
        }

        public int getPayid() {
            return payid;
        }

        public void setPayid(int payid) {
            this.payid = payid;
        }

        public String getIntegral() {
            return integral;
        }

        public void setIntegral(String integral) {
            this.integral = integral;
        }

        public String getDistribution() {
            return distribution;
        }

        public void setDistribution(String distribution) {
            this.distribution = distribution;
        }

        public String getHexiao_status() {
            return hexiao_status;
        }

        public void setHexiao_status(String hexiao_status) {
            this.hexiao_status = hexiao_status;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getShoppingtype() {
            return shoppingtype;
        }

        public void setShoppingtype(String shoppingtype) {
            this.shoppingtype = shoppingtype;
        }

        public String getUsertype() {
            return usertype;
        }

        public void setUsertype(String usertype) {
            this.usertype = usertype;
        }

        public int getTihuo_id() {
            return tihuo_id;
        }

        public void setTihuo_id(int tihuo_id) {
            this.tihuo_id = tihuo_id;
        }

        public String getKuaidiname() {
            return kuaidiname;
        }

        public void setKuaidiname(String kuaidiname) {
            this.kuaidiname = kuaidiname;
        }

        public String getKuaidivalue() {
            return kuaidivalue;
        }

        public void setKuaidivalue(String kuaidivalue) {
            this.kuaidivalue = kuaidivalue;
        }

        public String getX() {
            return x;
        }

        public void setX(String x) {
            this.x = x;
        }

        public String getY() {
            return y;
        }

        public void setY(String y) {
            this.y = y;
        }

        public String getShansongdingdan() {
            return shansongdingdan;
        }

        public void setShansongdingdan(String shansongdingdan) {
            this.shansongdingdan = shansongdingdan;
        }

        public String getStatus_type() {
            return status_type;
        }

        public void setStatus_type(String status_type) {
            this.status_type = status_type;
        }

        public int getStatus_type_id() {
            return status_type_id;
        }

        public void setStatus_type_id(int status_type_id) {
            this.status_type_id = status_type_id;
        }

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }

        public AwaitPaymentBean getAwaitPayment() {
            return awaitPayment;
        }

        public void setAwaitPayment(AwaitPaymentBean awaitPayment) {
            this.awaitPayment = awaitPayment;
        }

        public TihuodianBean getTihuodian() {
            return tihuodian;
        }

        public void setTihuodian(TihuodianBean tihuodian) {
            this.tihuodian = tihuodian;
        }

        public List<ListBean> getList() {
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        @Override
        public int compareTo(ListBeanX o) {
            //eturn DateUtil.getDateByDateTimeFormat(this.date).compareTo(DateUtil.getDateByDateTimeFormat(o.getDate()));
            return DateUtil.getDateByDateTimeFormat(o.getDate()).compareTo(DateUtil.getDateByDateTimeFormat(this.date));
        }

        public static class AwaitPaymentBean {
            /**
             * my_out_trade_no : 1626337355609
             * price : 180.50
             * user_id : 91
             * admin_id : 65
             */

            private String my_out_trade_no;
            private String price;
            private int user_id;
            private String admin_id;

            public String getMy_out_trade_no() {
                return my_out_trade_no;
            }

            public void setMy_out_trade_no(String my_out_trade_no) {
                this.my_out_trade_no = my_out_trade_no;
            }

            public String getPrice() {
                return price;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public int getUser_id() {
                return user_id;
            }

            public void setUser_id(int user_id) {
                this.user_id = user_id;
            }

            public String getAdmin_id() {
                return admin_id;
            }

            public void setAdmin_id(String admin_id) {
                this.admin_id = admin_id;
            }
        }

        public static class TihuodianBean {
            /**
             * nickname : 万象城精品房源
             * site : 山东省德州市德城区乐普大道
             * x : 37.46903
             * y : 116.38810
             */

            private String nickname;
            private String site;
            private String x;
            private String y;

            public String getNickname() {
                return nickname;
            }

            public void setNickname(String nickname) {
                this.nickname = nickname;
            }

            public String getSite() {
                return site;
            }

            public void setSite(String site) {
                this.site = site;
            }

            public String getX() {
                return x;
            }

            public void setX(String x) {
                this.x = x;
            }

            public String getY() {
                return y;
            }

            public void setY(String y) {
                this.y = y;
            }
        }

        public static class ListBean {
            /**
             * fund : 0
             * admin_id : 65
             * out_trade_no : 202101291627353844
             * order_id : 937
             * name : 刘明鑫
             * price : null
             * date : 2021-07-27 10:44:04
             * commodityname : 鱼皮
             * number : 1
             * sku : [{"spec_value":"1袋"}]
             * type : 3
             * phone : 15610827769
             * commodity_id : 361
             * site : 河北省衡水市故城县西半屯镇万庄村
             * property : {"spec_image":"https://yuncang.dzsmxx.com/uploads/20210529/4ef9dc7f83b0a60ea50996daea6cff5e.jpg","goods_price":"10.00"}
             */

            private String fund;
            private int admin_id;
            private String out_trade_no;
            private int order_id;
            private String name;
            private String price;
            private String date;
            private String commodityname;
            private int number;
            private int type;
            private String phone;
            private int commodity_id;
            private String site;
            private PropertyBean property;
            private List<SkuBean> sku;

            public String getFund() {
                return fund;
            }

            public void setFund(String fund) {
                this.fund = fund;
            }

            public int getAdmin_id() {
                return admin_id;
            }

            public void setAdmin_id(int admin_id) {
                this.admin_id = admin_id;
            }

            public String getOut_trade_no() {
                return out_trade_no;
            }

            public void setOut_trade_no(String out_trade_no) {
                this.out_trade_no = out_trade_no;
            }

            public int getOrder_id() {
                return order_id;
            }

            public void setOrder_id(int order_id) {
                this.order_id = order_id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getPrice() {
                return price;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public String getDate() {
                return date;
            }

            public void setDate(String date) {
                this.date = date;
            }

            public String getCommodityname() {
                return commodityname;
            }

            public void setCommodityname(String commodityname) {
                this.commodityname = commodityname;
            }

            public int getNumber() {
                return number;
            }

            public void setNumber(int number) {
                this.number = number;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public String getPhone() {
                return phone;
            }

            public void setPhone(String phone) {
                this.phone = phone;
            }

            public int getCommodity_id() {
                return commodity_id;
            }

            public void setCommodity_id(int commodity_id) {
                this.commodity_id = commodity_id;
            }

            public String getSite() {
                return site;
            }

            public void setSite(String site) {
                this.site = site;
            }

            public PropertyBean getProperty() {
                return property;
            }

            public void setProperty(PropertyBean property) {
                this.property = property;
            }

            public List<SkuBean> getSku() {
                return sku;
            }

            public void setSku(List<SkuBean> sku) {
                this.sku = sku;
            }

            public static class PropertyBean {
                /**
                 * spec_image : https://yuncang.dzsmxx.com/uploads/20210529/4ef9dc7f83b0a60ea50996daea6cff5e.jpg
                 * goods_price : 10.00
                 */

                private String spec_image;
                private String goods_price;

                public String getSpec_image() {
                    return spec_image;
                }

                public void setSpec_image(String spec_image) {
                    this.spec_image = spec_image;
                }

                public String getGoods_price() {
                    return goods_price;
                }

                public void setGoods_price(String goods_price) {
                    this.goods_price = goods_price;
                }
            }

            public static class SkuBean {
                /**
                 * spec_value : 1袋
                 */

                private String spec_value;

                public String getSpec_value() {
                    return spec_value;
                }

                public void setSpec_value(String spec_value) {
                    this.spec_value = spec_value;
                }
            }
        }
    }
}
